//
//  SearchCollectionViewCell.m
//  项目A --半糖
//
//  Created by romana on 16/6/1.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "SearchCollectionViewCell.h"

@implementation SearchCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.nameLable = [[UILabel alloc] init];
        [self.contentView addSubview:self.nameLable];
        //        self.nameLable.backgroundColor = [UIColor yellowColor];
        self.nameLable.layer.borderWidth = 2;
        self.nameLable.layer.borderColor = [UIColor lightGrayColor].CGColor;
        self.nameLable.layer.cornerRadius = 5;
        self.nameLable.clipsToBounds = YES;
        self.nameLable.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}


-(void)layoutSubviews{

 self.nameLable.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);


}





@end
